package com.wuyb.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wuyb.mapper.UserFriendInformMapper;
import com.wuyb.pojo.UsersFriendInform;
import com.wuyb.service.UserFriendInformService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: wyb
 * @Date: 2024/01/02/19:47
 * @Description:
 */
@Service
@Slf4j
public class UserFriendInformServiceImpl extends ServiceImpl<UserFriendInformMapper, UsersFriendInform> implements UserFriendInformService {

    @Resource
    private UserFriendInformMapper userFriendInformMapper;
    @Override
    public List<Object> getAllContent() {
        return userFriendInformMapper.selectObjs(new QueryWrapper<UsersFriendInform>()
                .select("content_xq")
                .eq("type_xq", 1));
    }
}
